home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-08-13 | 1.2 KB | 46 lines |
- ALLFILES=obscure.normal obscure.unreadable obscure.silly \
- highlight.out hsort.out
- ALLTEST=tst/obscure.normal tst/obscure.unreadable tst/obscure.silly \
- tst/highlight.out tst/hsort.out
-
- all: $(ALLFILES)
-
- obscure.normal: stripcr.c ../obscure
- @echo "/* output of "\`"obscure stripcr.c obscure.normal' */" \
- >obscure.normal
- ../obscure stripcr.c >> obscure.normal
-
- obscure.unreadable: stripcr.c ../obscure
- @echo \
- "/* output of "\`"obscure -u -w 40 stripcr.c obscure.unreadable' */" \
- > obscure.unreadable
- ../obscure -u -w 40 stripcr.c >> obscure.unreadable
-
- obscure.silly: stripcr.c ../obscure
- @echo "/* output of "\`"obscure -s stripcr.c obscure.silly' */" \
- >obscure.silly
- ../obscure -s stripcr.c >>obscure.silly
-
- highlight.out: stripcr.c ../highlight
- @echo "/* output of "\`"highlight stripcr.c highlight.out' */" \
- >highlight.out
- ../highlight stripcr.c >>highlight.out
-
- hsort.out: stripcr.c ../hsort
- @echo "/* output of "\`"hsort stripcr.c hsort.out' */" >hsort.out
- ../hsort stripcr.c >>hsort.out
-
- ../obscure ../highlight ../hsort:
- @echo "please re-build binaries."
- @exit 1
-
- test: $(ALLFILES) $(ALLTEST)
- @(for f in $(ALLFILES) ; do cmp $$f tst/$$f; done)
-
- copytest: $(ALLFILES)
- cp $(ALLFILES) tst
-
- clean:
- rm -f core *~
- rm -f $(ALLFILES)
-